<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03_CSS常用值</title>
    <style>
        h1{
            color:rgb(255,0,0);
            color:#FF0000;
            color:#F00
        }
        div{
            width:100px;
            height:100px;
            border:5px solid red;
        }
        .d1{
            background-color:rgb(255,0,0.1);
        }
        .d2{
            background-color:rgba(255,0,0,0.7);
        }
        .d3{
            background-color:rgba(255,0,0,0.5);
        }
        .d4{
            background-color:rgba(255,0,0,0.3);
        }
        .d5{
            background-color:rgba(255,0,0,0.6);
        }
        .bgi{
            width:500px;
            height:300px;
            /*background-image:url('../day01/1.jpg')*/
            background-image:linear-gradient(130deg,red,cyan,purple,#FF0);
        }
        .viewport{
            wifth:100vw;/*100%视口宽度*/
            height:100vh;/*100%视口高度*/
            background-color:pink;
        }
    </style>
</head>
<body>
<div class="viewport"></div>
    <h1>测试色值</h1>
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
    <div class="d4"></div>
    <div class="d5"></div>
    <div class="bgi"></div>
</body>
</html>